package com.shibaobei.activity.service;

import com.shibaobei.activity.dao.ApplicationMapper;
import com.shibaobei.activity.model.Application;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2020/5/8 0008.
 */
@Service
public class ApplicationService {
    @Autowired
    private ApplicationMapper applicationMapper;


    public List<Application> findByApplicant(Integer userId, String status) {
        return applicationMapper.findByApplicant(userId,status);
    }

    public Application findById(Integer applicationId) {
        return applicationMapper.findById(applicationId);
    }

    public void update(Application application) {
        applicationMapper.update(application);
    }
}
